package com.qrpcw.algorithms;

import java.util.Random;

public class GenerateRandomNumber {

	public static int[] intNumbers(int n){
		int[] result = new int[n];	    
		Random rand = new Random();	    
		for (int i = 0; i < result.length; i++){		    
			result[i] = 101 + rand.nextInt(800);	    
		}	    
		return result;	
	}
	
	public static double[] doubleNumbers(int n){
		double[] result = new double[n];	    
		Random random = new Random();	    
		for (int i = 0; i < result.length; i++){		    
			result[i] = random.nextFloat();	    
		}	    
		return result;	
	}

	public static double[] uniformNumbers(int n){
		double[] result = new double[n];
		for (int i = 0; i < result.length; i++){		    
			result[i] = Math.random();
		}
		return result;
	}
}
